﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class ServiceSKUPropertyConfig : EntityTypeConfigBase<ServiceSKUProperty>
	{
		public ServiceSKUPropertyConfig()
		{
			Property(skup => skup.HospitalId)
				.IsRequired()
				.HasMaxLength(32);

			Property(skup => skup.FrontendName)
				.IsRequired()
				.HasMaxLength(50);

			Property(skup => skup.BackendName)
				.IsRequired()
				.HasMaxLength(50);
		}
	}
}
